(function(classdat){
	var fields   = classdat.fields;
	var value 	 = {};
	var info     = [];
	/**
	 *提交，entity数据结构有点特殊
	 */
	if(classdat.sever=="entity"){
		for(f in fields){
			var obj = Ext.getCmp(fields[f].name);
			if(obj!=null){
				info.push({
					"key"	:fields[f].name,
					"value"	:obj.getValue()
				});
			}
		}
		value["info"]=info;
		value["clazz"]=classdat.name;
	}else{
		for(f in fields){
			
			if(fields[f].type=="obj"){
				var obj = Ext.getCmp(fields[f].name+"_id");
				value[fields[f].name]={
					id:obj.getValue()
				};
			}else{
				var obj = Ext.getCmp(fields[f].name);
				value[fields[f].name]=obj.getValue();
			}
		 
		}
	}
	return value;
})